<template>
  <div
    v-if="crud.props.searchToggle"
  >
  <!-- <span>会员等级:</span>
      <el-select v-model="query.enabled" clearable size="small" placeholder="会员等级" class="filter-item" style="width: 120px" @change="crud.toQuery" >
      <el-option v-for="item in dict.dict.job_status" :key="item.value" :label="item.label" :value="item.value" />
    </el-select> -->
  <span>  患者姓名:</span>
    <el-input v-model="query.name" clearable size="small" placeholder="姓名" style="width: 200px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
    <span>  登记日期:</span>
    <!-- <el-date-picker
      v-model="query.startTime"
      :default-time="['00:00:00','23:59:59']"
      type="date"
      range-separator=":"
      size="small"
      class="date-item"
      value-format="yyyy-MM-dd HH:mm:ss"
      placeholder="开始日期"
    /> -->
    <el-date-picker
          v-model="query.startTime"
          type="date"
          size="small"
          class="filter-item charges-date-picker"
          placeholder="开始日期"
          value-format="yyyy-MM-dd"
          style="width: 140px"
        >
        </el-date-picker>
    <span> 至 </span>
    <!-- <el-date-picker
      v-model="query.endTime"
      :default-time="['00:00:00','23:59:59']"
      type="date"
      range-separator=":"
      size="small"
      class="date-item"
      value-format="yyyy-MM-dd HH:mm:ss"
      placeholder="结束日期"
    /> -->
    <el-date-picker
          v-model="query.endTime"
          type="date"
          size="small"
          class="filter-item charges-date-picker"
          placeholder="结束日期"
          value-format="yyyy-MM-dd"
          style="width: 140px"
        >
        </el-date-picker>
    <rrOperation
      :crud="crud"
    />
  </div>
</template>

<script>
import { header } from '@crud/crud'
import rrOperation from '@crud/RR.operation'
export default {
  components: { rrOperation },
  mixins: [header()],
  props: {
    dict: {
      type: Object,
      required: true
    }
  }
}
</script>
